package com.own.business.wechat.official.doc;

import com.own.component.springdoc.DefaultSecuritySpringDocConfiguration;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

import javax.annotation.Resource;

/**
 * WechatOfficialApiDocConfiguration
 *
 * @author chenxueli
 * @date 2023-12-05 19:39:01
 */
@SpringBootConfiguration
public class WechatOfficialApiDocConfiguration {

    @Resource
    private DefaultSecuritySpringDocConfiguration defaultSecuritySpringDocConfiguration;

    @Bean
    public GroupedOpenApi wechatMobileApiDoc() {
        return defaultSecuritySpringDocConfiguration.create(
                "微信公众号信息",
                this.getClass().getPackageName(),
                "com.own.business.wechat.official.controller"
        );
    }

}
